package com.hejing.面向对象特征之三_多态.向下转型;

/**
 * ClassName: Person
 * Package: com.hejing.面向对象特征之三_多态.初识多态
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-26 11:20
 * @Version: 1.0
 */
public class Person {
    // 属性:
    String name;
    int age;

    public void eat() {
        System.out.println("人吃饭");
    }

    public void walk() {
        System.out.println("人走路");
    }
}



















